package action.pojo;

import java.io.InputStream;
import java.io.OutputStream;

public class StreamFile {
	private String name;
	private String src;
	private String des;
	private long size;
	private InputStream input;
	private OutputStream output;
	
	public StreamFile(){
		src = des = "";
		name = "";
		size = 1;
		input = null;
		output = null;
	}
	
	public StreamFile(String src, String des){
		this.src = src;
		this.des = des;
	}
	
	public StreamFile(String name, long size, String src, OutputStream output){
		this.name = name;
		this.size = size;
		this.src = src;
		this.output = output;
	}
	
	public StreamFile(String name, long size, InputStream input, OutputStream output){
		this.name = name;
		this.size = size;
		this.input = input;
		this.output = output;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public void setSize(long size) {
		this.size = size;
	}

	public long getSize() {
		return size;
	}

	public InputStream getInput() {
		return input;
	}

	public void setInput(InputStream input) {
		this.input = input;
	}

	public OutputStream getOutput() {
		return output;
	}

	public void setOutput(OutputStream output) {
		this.output = output;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public String getSrc() {
		return src;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public String getDes() {
		return des;
	}
}
